# @Time : 2020/9/24 14:09
# @Author : Fioman 
# @Phone : 13149920693
import cv2 as cv

image = cv.imread("test1.bmp", cv.IMREAD_GRAYSCALE)
centerXY = (516, 413)
r = 35

# 左上角的点
leftTop = 516 - 35, 413 - 35
target = image[leftTop[1]:leftTop[1] + 70, leftTop[0]:leftTop[0] + 70]
cv.imwrite("target1.bmp", target)
